package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.PositionDao;
import mx.entity.Position;
import mx.service.PositionService;

@Service("positionService")
public class PositionServiceImpl implements PositionService {

	@Resource
	private PositionDao positionDao;

	public List<Position> list(Map<String, Object> map) {
		return positionDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return positionDao.getTotal(map);
	}

	public Integer update(Position position) {
		return positionDao.update(position);
	}

	public Position find(Position position) {
		return positionDao.find(position);
	}

	public Integer delete(Integer id) {
		return positionDao.delete(id);
	}

	public Integer add(Position position) {
		return positionDao.add(position);
	}

	public Position findById(Integer id) {
		return positionDao.findById(id);
	}

}
